
import java.util.*;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: shy
 * @Date: 2021/03/15/9:05
 * @Description:
 */


import java.util.*;
public class Solution {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = in.nextInt();
        }
        int sum = 0;
        int k = 1;
        for (int i = 0; i < n; i++) {
            sum += a[i];
        }
        while (true){
            if (2 * sum / n < k){
                k++;
            }
            break;
        }
        System.out.println(k);
    }

}
